﻿using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Media;

namespace LFSRecord2.View.Converters
{
    public class AudioRegionSelectedForegroundBrushConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if ((bool)value == true)
                return new SolidColorBrush(Color.FromRgb(0, 0, 0));
            //return new SolidColorBrush(Color.FromRgb(220, 220, 220));
            else
                return new SolidColorBrush(Color.FromRgb(30, 30, 30));
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return null;
        }
    }
}
